#include <stdio.h>
main(){
    int c, tabCount = 0, blankCount = 0, newlineCount = 0;
    // 97是字母a
    while ((c = getchar()) != EOF) {
        // 计数tab
        if (c == '\t') {
            ++tabCount;
        }

        // 计数空格
        if (c == ' ') {
            ++blankCount;
        }

        // 计数新行
        if (c == '\n') {
            ++newlineCount;
        }
    }
    printf("tabs: %d\n", tabCount);
    printf("blanks: %d\n", blankCount);
    printf("newlines: %d\n", newlineCount);
}